<script>
//   qw -  color in blue

//
$(document).ready(
function (){



$('[name]').change(function (){

if ($(this).find(":checked")) 
	alert('ched'); 
else alert('non ch'); 
	
} );
	
	
} 
		);

</script>


<a  href="#" xxx="qaz">qw</a>
<a class="first"  href="#" >aasqw</a>

<input type="checkbox" value="qwe" name="qaz" checked="checked"/>